package com.ruoyi.web.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * app用户对象 app_user
 *
 * @author ruoyi
 * @date 2022-12-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class AppUser extends Model<AppUser> {
    private static final long serialVersionUID = 1L;

    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    /** 主键 */
    private Long id;

    /**
     * 父级id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String phone;

    /**
     * 邮箱
     */
    @Excel(name = "邮箱")
    private String email;

    /**
     * 授权地址
     */
    @Excel(name = "授权地址")
    private String address;

    /**
     * 授权公链
     */
    @Excel(name = "授权公链")
    private String chain;

    /**
     * 资金密码
     */
    @Excel(name = "资金密码")
    private String password;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String name;

    /**
     * 身份证号
     */
    @Excel(name = "身份证号")
    private String identityNumber;

    /**
     * 注册ip
     */
    @Excel(name = "注册ip")
    private String ip;

    /**
     * 邀请码
     */
    @Excel(name = "邀请码")
    private String invitationCode;

    /**
     * 注册时间
     */
    @Excel(name = "注册时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Excel(name = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 是否代理人 0 否 1 是
     */
    private String isAgent;

    /**
     * vip等级
     */
    private Integer vipLevel;
}
